package com.jp.controller;

import com.jp.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AccountController {

    @Autowired
    private AccountService accountService;

    @GetMapping("/getAccount")
    public String getAccount() {
        return accountService.getById(1).toString();
    }

}
